#ifndef _VGPCLIP_H_
#define _VGPCLIP_H_

#include "cocos2d.h"

class VGPClip
{
protected:
	static VGPClip* instance;

public:
	static VGPClip* getInstance();	

	//create
	cocos2d::CCClippingNode* createClip( cocos2d::CCPoint position , cocos2d::CCSize size, cocos2d::CCNode* node, int zOrder, int tag );

	cocos2d::CCClippingNode* createClip( cocos2d::CCPoint position , cocos2d::CCSize size, cocos2d::CCNode* node, int zOrder );

	cocos2d::CCClippingNode* createClip( cocos2d::CCPoint position , cocos2d::CCSize size, cocos2d::CCNode* node );

	//add clip
	void addClip( cocos2d::CCLayer* layer, cocos2d::CCPoint position , cocos2d::CCSize size, cocos2d::CCNode* node, int zOrder, int tag );

	void addClip( cocos2d::CCLayer* layer, cocos2d::CCPoint position , cocos2d::CCSize size, cocos2d::CCNode* node, int zOrder );

	void addClip( cocos2d::CCLayer* layer, cocos2d::CCPoint position , cocos2d::CCSize size, cocos2d::CCNode* node );

};
#endif
